#ifndef ADDSTUDENT_H
#define ADDSTUDENT_H

#include <QWidget>
#include <QLineEdit>
#include <QList>
#include <QLabel>
#include <QTableWidget>
#include "core/sims_core.h"

namespace Ui
{
    class AddStudent;
}

class AddStudent : public QWidget
{
    Q_OBJECT

public:
    explicit AddStudent(QTableWidget *_tablewidget = nullptr,
                        StudentListType *_StudentLists = nullptr,
                        StudentParameterType *_StuParameters = nullptr,
                        QWidget *parent = nullptr);
    ~AddStudent();

    void change_ui();

    void getLabStuNum(QLabel *_labStudNum) { labStudNum = _labStudNum; };

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::AddStudent *ui;
    QList<QLineEdit *> QLineList;

    QTableWidget *tablewidget;
    StudentListType *StudentList;
    StudentParameterType *StuParameters;

    QLabel *labStudNum; // 状态栏学生数量
};

#endif // ADDSTUDENT_H
